package com.invest.infra.mvc.utils;

/**
 * <p>注释</p>
 *
 * @author yuyizhao
 * @version v0.1 2016/3/11 Exp
 */
public class PageVO {

    private static final  int DEFAULT_PAGE_SIZE = 20;
    private static final  int DEFAULT_PAGE_NUM = 1;

    //分页通用字段
    private Integer pageNum;

    private Integer  pageSize;

    private String order;

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getPageNum() {
        return pageNum == null ? DEFAULT_PAGE_NUM : pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize == null ? DEFAULT_PAGE_SIZE : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
